home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 205_01 / rs.doc < prev    next >
Text File  |  1980-01-01  |  768b  |  25 lines

  1. -------------------------------------------------------------------------------
  2.  RS
  3. -------------------------------------------------------------------------------
  4.  
  5. Format:
  6.  
  7.      rs [< filename]
  8.  
  9. Purpose:
  10.  
  11. RS is a filter that removes all white spaces (spaces and TABs) between the 
  12. last word and the carriage return at the ends of lines in text files.
  13.  
  14.      Before:                     After:
  15.  
  16.      last word. ^I[CR]           last word.[CR]
  17.      end of text.    [CR]        end of text.[CR]
  18.      sentence.^I^I^I^I[CR]       sentence.[CR]
  19.  
  20. Example:
  21.  
  22. Remove unnecessary spaces and tabs from textfile and place it in newfile.
  23.  
  24.      rs <texfile >newfile
  25.